<template>
  <div class="app">
    <!-- 导航栏 (与公告页面保持一致) -->
    <header>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="description" content="安心陪诊服务平台提供全国各大医院全天、半天、诊前约号、预约挂号等陪诊服务">
      <div class="container">
        <nav>
          <div class="logo">
            <a href="/">安心<span>陪诊</span></a>
          </div>
          <ul class="nav-links">
            <li><a href="/">首页</a></li>
            <li><a href="#" @click.prevent="goToServiceType">服务项目</a></li>
            <li><a href="#" @click.prevent="goToServiceProcess">服务流程</a></li>
            <li><a href="#" @click.prevent="goToNotice">公告中心</a></li>
            <li
                @mouseenter="showDropdown('about')"
                @mouseleave="hideDropdown()"
            >
              <a href="#" class="active">
                关于我们
                <el-icon><ArrowDown /></el-icon>
              </a>
              <ul
                  class="dropdown-menu"
                  v-if="activeDropdown === 'about'"
                  @mouseenter="cancelHide()"
                  @mouseleave="hideDropdown()"
              >
                <li><router-link to="/about">项目简介</router-link></li>
                <li><router-link to="/contact">联系我们</router-link></li>
              </ul>
            </li>
          </ul>
          <div class="nav-buttons">
            <button @click="goToLogin" class="btn">登录</button>
            <button @click="goToRegister" class="btn">注册</button>
          </div>
        </nav>
      </div>
    </header>

    <!-- 修改后的项目简介内容区域 -->
    <main class="about-container">
      <div class="container">
        <div class="section-title">
          <h2>系统介绍</h2>
          <p>专业医院陪诊服务，让就医更安心、更便捷</p>
        </div>

        <div class="about-content">
          <!-- 平台概述 -->
          <section class="about-section">
            <h3>安心陪诊 - 您的就医好帮手</h3>
            <div class="section-content">
              <p>在快节奏的现代生活中，许多患者、老年人或行动不便人士就医时面临无人陪伴的难题。我们的智能陪诊系统致力于解决这一痛点，为用户提供专业、贴心的全程陪诊服务，让就医更轻松、更安心。</p>
             <br>
              <h3>系统亮点：</h3>
              <p>✅ 专业陪诊员团队：经验丰富的陪诊人员协助挂号、取药、陪同检查、记录医嘱，全程贴心守护。</p>
              <p>✅ 个性化服务：根据用户需求定制陪诊方案，如专病陪诊、术后复诊、老人/孕妇专属陪护等。</p>
              <p>✅ 线上预约便捷：一键预约，灵活选择时间、医院及服务类型，省时省力。</p>
              <p>✅ 透明化流程：实时更新就诊进度，电子化报告整理，家属可远程查看陪诊动态。</p>
              <p>✅ 健康档案管理：整合历次就诊记录，形成个人健康数据库，方便长期健康管理。</p>
              <p>✅ 随访提醒：根据用户需求，及时提醒患者、家属、医生等，确保服务质量。</p>
              <p>无论是异地就医、独居老人，还是需要临时协助的孕妈和残障人士，我们的陪诊系统都能成为您的“临时家人”，用温暖和专业消除就医路上的孤独与焦虑。</p>
              <p>让您的就医更安心、更便捷，让健康之路，有人同行。</p>
              <br>
              <h3>系统初衷：</h3>
              <div class="stats-grid">
                <div class="stat-item">
                  <div class="stat-number">100%</div>
                  <div class="stat-label">以人为本</div>
                </div>
                <div class="stat-item">
                  <div class="stat-number">100%</div>
                  <div class="stat-label">诚心诚意</div>
                </div>
                <div class="stat-item">
                  <div class="stat-number">100%</div>
                  <div class="stat-label">尽心竭力</div>
                </div>
                <div class="stat-item">
                  <div class="stat-number">100%</div>
                  <div class="stat-label">精益求精</div>
                </div>
              </div>
            </div>
          </section>

          <!-- 服务内容 -->
          <section class="about-section">
            <h3>全方位陪诊服务</h3>
            <div class="section-content">
              <div class="service-list">
                <div class="service-item">
                  <div class="service-icon">📅</div>
                  <div class="service-text">
                    <h4>诊前服务</h4>
                    <ul>
                      <li>医院及专家推荐</li>
                      <li>预约挂号协助</li>
                      <li>就诊前注意事项提醒</li>
                      <li>检查项目预约</li>
                    </ul>
                  </div>
                </div>
                <div class="service-item">
                  <div class="service-icon">🏥</div>
                  <div class="service-text">
                    <h4>诊中服务</h4>
                    <ul>
                      <li>全程陪同就诊</li>
                      <li>医患沟通协助</li>
                      <li>检查项目陪同</li>
                      <li>医嘱详细记录</li>
                    </ul>
                  </div>
                </div>
                <div class="service-item">
                  <div class="service-icon">💊</div>
                  <div class="service-text">
                    <h4>诊后服务</h4>
                    <ul>
                      <li>取药及送药服务</li>
                      <li>医嘱专业解读</li>
                      <li>复诊提醒安排</li>
                      <li>健康管理建议</li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </section>

          <!-- 平台优势 -->
          <section class="about-section">
            <h3>为什么选择安心陪诊</h3>
            <div class="section-content">
              <div class="advantage-cards">
                <div class="advantage-card">
                  <div class="advantage-icon">🛡️</div>
                  <h4>严格筛选</h4>
                  <p>所有陪诊师均需通过背景调查、专业考核和岗前培训，持证上岗</p>
                </div>
                <div class="advantage-card">
                  <div class="advantage-icon">⚕️</div>
                  <h4>专业团队</h4>
                  <p>由资深医护、陪诊专员组成，严格培训、经验丰富，以专业、耐心、细致的服务，全程护航您的就医之路</p>
                </div>
                <div class="advantage-card">
                  <div class="advantage-icon">🔒</div>
                  <h4>安全保障</h4>
                  <p>全程服务保险保障，服务过程可追溯，确保安全可靠</p>
                </div>
                <div class="advantage-card">
                  <div class="advantage-icon">⏱️</div>
                  <h4>高效便捷</h4>
                  <p>30分钟快速响应，提前规划就诊路线，节省50%以上就医时间</p>
                </div>
              </div>
            </div>
          </section>

          <!-- 服务对象 -->
          <section class="about-section">
            <h3>我们的服务对象</h3>
            <div class="section-content">
              <div class="target-groups">
                <div class="target-group">
                  <div class="group-icon">👴👵</div>
                  <h4>老年人群体</h4>
                  <p>为行动不便或子女不在身边的老人提供全程陪护</p>
                </div>
                <div class="target-group">
                  <div class="group-icon">🤰</div>
                  <h4>孕产妇</h4>
                  <p>陪伴产检、孕期不适就医等特殊需求</p>
                </div>
                <div class="target-group">
                  <div class="group-icon">🧑‍🦽</div>
                  <h4>术后患者</h4>
                  <p>协助复诊、换药、康复检查等医疗服务</p>
                </div>
                <div class="target-group">
                  <div class="group-icon">👶</div>
                  <h4>儿童患者</h4>
                  <p>当父母无法陪同时的专业儿童就医陪伴</p>
                </div>
                <div class="target-group">
                  <div class="group-icon">🌐</div>
                  <h4>异地就医</h4>
                  <p>为外地患者提供本地医院导诊和陪护服务</p>
                </div>
                <div class="target-group">
                  <div class="group-icon">🧠</div>
                  <h4>特殊患者</h4>
                  <p>为认知障碍、精神障碍等特殊患者提供专业陪诊</p>
                </div>
              </div>
            </div>
          </section>
        </div>
      </div>
    </main>

    <!-- 页脚 (与公告页面保持一致) -->
    <footer>
      <div class="container">
        <div class="footer-content">
          <div class="footer-section">
            <h3>关于我们</h3>
            <p>安心陪诊致力于为需要就医陪伴的用户提供专业、贴心的陪诊服务。</p>
          </div>
          <div class="footer-section">
            <h3>快速链接</h3>
            <ul>
              <li><a href="/">首页</a></li>
              <li><a href="/about">关于我们</a></li>
              <li><a href="/contact">联系我们</a></li>
              <li><a href="#" @click.prevent="goToUserAgreement">用户协议</a></li>
              <li><a href="#" @click.prevent="goToPrivacyPolicy">隐私政策</a></li>
            </ul>
          </div>
          <div class="footer-section">
            <h3>联系我们</h3>
            <p>电话：400-123-4567</p>
            <p>邮箱：service@anxinpeizhen.com</p>
          </div>
        </div>
        <div class="copyright">
          <p>&copy; 2025 安心陪诊平台 版权所有</p>
        </div>
      </div>
    </footer>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router"
import { ArrowDown } from '@element-plus/icons-vue'
import {ref} from "vue";

const router = useRouter()

// 下拉菜单相关逻辑
const activeDropdown = ref(null)
const hoverTimeout = ref(null)

const dropdownOptions = {
  'escort': [
    { name: '陪诊师列表', path: '/escort/list' },
    { name: '陪诊师认证', path: '/escort/certification' }
  ],
  'about': [
    { name: '项目简介', path: '/about' },
    { name: '联系我们', path: '/contact' }
  ]
}

// 导航相关方法
const showDropdown = (menu) => {
  clearTimeout(hoverTimeout.value)
  activeDropdown.value = menu
}

const hideDropdown = () => {
  hoverTimeout.value = setTimeout(() => {
    activeDropdown.value = null
  }, 200)
}

const cancelHide = () => {
  clearTimeout(hoverTimeout.value)
}

// const toggleDropdown = (menu) => {
//   activeDropdown.value = activeDropdown.value === menu ? null : menu
// }

const goToRegister = () => {
  router.push('/register')
}

const goToLogin = () => {
  router.push('/login')
}

const goToNotice = () => {
  router.push('/notice')
}

const goToUserAgreement = () => {
  router.push('/userAgreement')
}

const goToPrivacyPolicy = () => {
  router.push('/privacyPolicy')
}

const goToServiceType = () => {
  router.push('/serviceType')
}

const goToServiceProcess = () => {
  router.push('/serviceProcess')
}
</script>

<style scoped>
/* 保持原有的全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a90e2;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  font-size: 16px;
}

.btn:hover {
  background-color: #3a7bc8;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* 导航栏样式 */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #4a90e2;
}

.logo span {
  color: #333;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4a90e2;
}

.nav-links a.active {
  color: #4a90e2;
  font-weight: bold;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

/* 继承公告页面的基础样式 */
.about-container {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.section-title p {
  color: #777;
  max-width: 700px;
  margin: 0 auto;
}

/* 统计数据网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}

.stat-item {
  background-color: #f0f7ff;
  padding: 15px;
  border-radius: 8px;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #4a90e2;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

/* 服务列表项调整 */
.service-text ul {
  margin-top: 10px;
  padding-left: 20px;
}

.service-text li {
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* 优势卡片调整 */
.advantage-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.advantage-cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 服务对象调整 */
.target-groups {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.group-icon {
  font-size: 36px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .target-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .target-groups {
    grid-template-columns: 1fr;
  }
}

/* 项目简介内容样式 */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h3 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.section-content {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-image {
  width: 100%;
  border-radius: 6px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 服务列表样式 */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.service-item:hover {
  background-color: #f8f9fa;
}

.service-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.service-text h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.service-text p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 优势卡片样式 */
.advantage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.advantage-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advantage-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.advantage-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 服务对象样式 */
.target-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.target-group {
  padding: 20px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.target-group:hover {
  background-color: #f8f9fa;
}

.group-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.target-group h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.target-group p {
  color: #666;
  font-size: 14px;
}

/* 卡片整体样式优化 */
.about-section {
  margin-bottom: 50px;
}

.section-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.section-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(74, 144, 226, 0.1);
}

/* 标题样式优化 */
.about-section h3 {
  font-size: 26px;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
  position: relative;
}

.about-section h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #4a90e2, #63a4ff);
}

/* 文本内容优化 */
.about-section p {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 系统亮点列表优化 */
.about-section p[style*="✅"] {
  position: relative;
  padding-left: 30px;
}

.about-section p[style*="✅"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  background-color: #e6f0ff;
  border-radius: 50%;
}

.about-section p[style*="✅"]::after {
  content: '✓';
  position: absolute;
  left: 5px;
  top: 4px;
  color: #4a90e2;
  font-weight: bold;
  font-size: 12px;
}

/* 统计数据网格优化 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  background: linear-gradient(135deg, #f8fbfe, #e6f0ff);
  padding: 25px 15px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.1);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(135deg, #4a90e2, #63a4ff);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: #4a5568;
  font-size: 16px;
  font-weight: 500;
}

/* 服务卡片优化 */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-item {
  background: white;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  text-align: center;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(74, 144, 226, 0.1);
}

.service-icon {
  font-size: 42px;
  margin-bottom: 20px;
  display: inline-block;
}

.service-text h4 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.service-text ul {
  margin-top: 15px;
  text-align: left;
}

.service-text li {
  margin-bottom: 10px;
  color: #4a5568;
  position: relative;
  padding-left: 20px;
}

.service-text li::before {
  content: '•';
  color: #4a90e2;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 优势卡片优化 */
.advantage-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.advantage-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(74, 144, 226, 0.1);
}

.advantage-icon {
  font-size: 42px;
  margin-bottom: 20px;
  display: inline-block;
}

.advantage-card h4 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.advantage-card p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
}

/* 服务对象卡片优化 */
.target-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.target-group {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.target-group:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(74, 144, 226, 0.1);
}

.group-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
}

.target-group h4 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.target-group p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .service-list,
  .advantage-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .target-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-content {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .service-list,
  .advantage-cards,
  .target-groups,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-section h3 {
    font-size: 24px;
  }
}

/* 下拉菜单样式 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 8px 20px;
  transition: background-color 0.3s;
}

.dropdown-menu li:hover {
  background-color: #f5f7fa;
}

.dropdown-menu a {
  display: block;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: #4a90e2;
}

.nav-links > li {
  position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .about-container {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-content {
    padding: 20px;
  }

  .service-list,
  .advantage-cards,
  .target-groups {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
  }
}

/* 页脚样式 */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-section p {
  margin-bottom: 15px;
  color: #bbb;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #bbb;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #4a90e2;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3d5166;
  color: #bbb;
}
</style>